#include <iostream>
using std::cout;
using std::cin;
using std::endl;
void fact ()
{
    int n = 0;
    cin >> n;

    n++;

    int end = 1;

    int i = 2;
    while ( i <= n )
    {
        end = end * i;

        i++;

        cout << end << endl;
    }
}
int main()
{
    fact (2);
}

